<?php use_helper("gettitle"); ?>
<script type="text/javascript">
    if(2==<?php echo $contEdit; ?>)
    {
       history.go(-2);
    }
</script>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="	background:#E2F5BC;">
  <tr>
    <td width="100%" height="24" colspan="2" bgcolor="#EDF9D5" style="padding-left:6px">
	<strong>编辑评论：</strong>
	</td>
  </tr>
  <tr>
    <td height="187" colspan="2" align="center" bgcolor="#FFFFFF">
	<form name="form1" method="post" action="<?php echo url_for('comment/edit'); ?>">
	<input type="hidden" name="contentEdit" value="2">
	<input type="hidden" name="content" value="<?php echo $comment->getCommentId();?>">
        <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tblist">
          <tr bgcolor="#FFFFFF">
            <td width="21%" height="24">评论所属文章：</td>
            <td width="79%" align="left">
              <?php echo getTitle($comment->getContentTypeI(),$comment->getContentId());?>            </td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="24">评论人：</td>
            <td align="left">
              <?php echo $comment->getUsers()->getName(); ?>            </td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="24">评论发布时间：</td>
            <td align="left">
              <?php echo date('Y-m-d H:i:s', strtotime($comment->getCreate_time())); ?>            </td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="24">IP地址：</td>
            <td align="left">
              <?php echo $comment->getUserIp(); ?>            </td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="24">评论内容：</td>
            <td align="left"><textarea name="bodys" cols="60" rows="5" id="bodys"><?php echo $comment->getBody(); ?></textarea></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="40" colspan="2" align="center">
              <input type="submit" name="Submit" value="保存更改" class="inputbut">
              　
              <input type="button" name="Submit2" value="不理返回" onClick="history.go(-1);" class="inputbut"></td>
          </tr>
        </table>
	  </form>
	  </td>
  </tr>
</table>
